package net.zhengxinyun.performance.service.yearSummaryScore;

import net.zhengxinyun.performance.entity.*;
import net.zhengxinyun.performance.filter.TownScoreFilter;
import net.zhengxinyun.performance.filter.YearSummaryScoreFilter;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface YearSummaryScoreService {
    String insert(YearSummaryScoreEntity yearSummaryScore);

    String update(YearSummaryScoreEntity yearSummaryScore);

    String delete(YearSummaryScoreEntity yearSummaryScore);

    List<YearSummaryScoreFilter> query(YearSummaryScoreFilter filter);

    Integer queryForCount(YearSummaryScoreFilter gradePointFilter);

    /**
     * 获取县对乡镇分数
     * @param datatime
     * @return
     */
    double  getIndexScore(String datatime, DepartmentEntity depart);

    /**
     * 获取正向激励分数
     * @param datetime
     * @return
     */
    String  getIncetiveScore(String datetime,String depart);

    /**
     *  县直单位分数
     */
    List<CountryUnitScoreEntity>  getUintScore(String datetime,DepartmentEntity departmentEntity);

    /**
     * 专项工作
     */
    String  getWorkScore(String datetime,String depart);

    //获取单位分数
    HashMap<String,Object> getDepartScore(List<DepartClassHead>  list, String datetime,String departCode,String type,String clasid);
}
